package com.yanqu.road.entity.curio;

import com.yanqu.road.entity.curio.config.CurioDrawItem;

public class CurioDrawResult {

    private String reward;

    /**
     * 品质
     */
    private int quality;

    /**
     * 整卡
     */
    private boolean whole;

    /**
     *
     */
    private int no;

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public int getQuality() {
        return quality;
    }

    public void setQuality(int quality) {
        this.quality = quality;
    }

    public boolean isWhole() {
        return whole;
    }

    public void setWhole(boolean whole) {
        this.whole = whole;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public static CurioDrawResult copy(CurioDrawItem drawItem, int no){
        CurioDrawResult result = new CurioDrawResult();
        result.setNo(no);
        result.setWhole(drawItem.isWhole());
        result.setQuality(drawItem.getQuality());
        result.setReward(drawItem.getReward());
        return result;
    }
}
